package com.cost.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * 用户管理
 * @author ASUS
 *
 */
@Controller
@RequestMapping("/user")
public class UserController {

	final String prefix = "view/system/user/";
	
	@RequestMapping("/view")
	public String roleView(){
		return prefix + "userList";
	}
	
	/**
	 * 查看用户信息
	 * @return
	 */
	@RequestMapping(value="/show",method=RequestMethod.GET)
	public String show(){
		return prefix + "show";
	}
	
	/**
	 * 添加用户
	 * @return
	 */
	@RequestMapping(value="/add",method=RequestMethod.GET)
	public String add(){
		return prefix + "add";
	}
	/**
	 * 添加用户
	 * @return
	 */
	@RequestMapping(value="/add",method=RequestMethod.POST)
	public String addPost(){
		return prefix + "add";
	}
	
	/**
	 * 修改用户
	 * @return
	 */
	@RequestMapping(value="/edit",method=RequestMethod.GET)
	public String edit(){
		return prefix + "edit";
	}
	
	/**
	 * 修改用户
	 * @return
	 */
	@RequestMapping(value="/edit",method=RequestMethod.POST)
	public String editPost(){
		return prefix + "edit";
	}
}
